# files
SRCEXE = test.cpp
SRCLIB = winmain.cpp
OBJEXE = $(SRCEXE:.cpp=.o)
OBJLIB = $(SRCLIB:.cpp=.o)
OUT = test.exe

# compiler
CC = g++

# options
SOURCEEXE = 
SOURCELIB = ../../src/win32/
INCLUDES = -I..\..\include -I..\..\include\win32
LIBS     = -L../../lib/win32/ -lrte

$(OUT):	$(OBJEXE) $(OBJLIB)
	$(CC) $(OBJEXE) $(OBJLIB) $(LIBS) -o $@

$(OBJEXE): %.o:	$(SOURCEEXE)%.cpp
	$(CC) -c $(INCLUDES) $< -o $@

$(OBJLIB): %.o:	$(SOURCELIB)%.cpp
	$(CC) -c $(INCLUDES) $< -o $@

clean:
	rm *.o

